{extends file="../home.html"}
{block name="title"}{$head_title}{/block}
{block name="css"}
<link rel="stylesheet" type="text/css" href="/Public/Css/front/front_css/sama_part2.css">
<link href="__PUBLIC__/Css/front/css/zhonchou_home.css?version={$version}" type="text/css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/front/front_css/refresh_load.css?version={$version}"/>
<style type="text/css">
	.home_item{
		position: relative;
		top:0.05rem;
	padding: 0.75rem 0.6rem 0.65rem;
	background: #fff;
	border-bottom: 1px solid #EFEFEF;
	}
	#load_wrapper{
	margin-top: 2.2rem;
	}
</style>
{/block}
{block name="content"}
<div class="his_concern">
	
	<div class="go_back"></div>
	<p><strong>我参与的悬赏</strong></p>
</div>



	{if !$post_list}
<!--没有参与悬赏时-->
 <div class="no_concern" style="height:31.1rem;">
	<img class="his_detail_icon" src="/Public/Images/front/front_img/icon_noxuanshang_personal@3x.png">
	<p class="his_detail_word">您还没有参与悬赏哦</p>
</div>
{else}
<div id="load_wrapper">
	<div id="scroller">
		<div id="pullDown">
		    <span class="pullDownIcon"></span>
		</div>

		<div class="home_list" id='new_list'>
			{foreach from=$post_list item=v}
			<div class="home_item">
				<div class="user_info clearfix">
					<a href="/FrontUserCenter/others_space/user_id/{$v.user_id}" class="avatar native_go">
						<img src="{$v.post_user.headimgurl}?imageView2/1/w/200/h/200/imageslim" alt="">
					</a>
					<div class="user_cont">
						<a class="nickname native_go" href="/FrontUserCenter/others_space/user_id/{$v.user_id}">{$v.post_user.nickname}</a>
						{foreach from=$v.post_user_title item=title}
						<i class="tag" style="background-color: {$title.title_color}">{$title.title_name}</i>
						{/foreach}
					</div>
				</div>
				<!-- 点击文字和图片跳转到详情页 -->
				<a href="/FrontChannel/post_detail/post_id/{$v.post_id}" class="native_go">
					<div class="item_title">
						{$v.title}
					</div>
					<div class="item_desc">
						{$v.content}
					</div>
					<ul class="imgbox clearfix">
						{foreach from=$v.imgs item=img key=k}
						{if $k < 5}
						<li {if !$img.is_show}class="blur"{/if}>
						<img src="{$img.img}?imageView2/1/w/200/h/200/imageslim" alt="">
						</li>
						{else}
						<li {if !$img.is_show}class="blur"{/if}>
						<div class="mask">
							<div class="txt">包含共{$v.img_count}张图</div>
						</div>
						<img src="{$img.img}?imageView2/1/w/200/h/200/imageslim" alt="">
						</li>
						{/if}
						{/foreach}
					</ul>
					<div class="item_bot clearfix">
						<span class="time fl">{$v.addtime}</span>
						<span class="time fl">查看 {$v.clickdot}</span><span class="time fl">评论 {$v.comment_num}</span>
						<span class="price fr">悬赏价：¥{$v.reward_money}</span>
					</div>
				</a>
			</div>
			{/foreach}
		</div>


			<div id="pullUp">
				<span class="pullUpIcon"></span><span class="pullUpLabel">上拉加载...</span>
			</div>
		</div>
	</div>
{/if}

{/block}
{block name="js"}
<script type="text/javascript" src="__JS__/front/front_js/iscroll.js"></script>
<!--<script type="text/javascript" src="__PUBLIC__/Js/front/iscroll.js"></script>-->
<script type="text/javascript" src="__PUBLIC__/Js/front/front_js/my_reward.js"></script>
<!-- <script type="text/javascript" src="__JS__/front/front_js/otherPersonalCenter.js"></script> -->
<script>
	var total = parseInt('{$total}')
	var firstRow =  parseInt('{$firstRow}')
</script>
{literal}
<script type="text/javascript">

	var home_banner = new Swiper('.home_banner',{
        pagination: '.swiper-pagination',
        paginationClickable: true,
        autoplay: 2000,//可选选项，自动滑动
    })

	$(function(){
		var imgw = $('.imgbox li').width();
		imgh = $('.imgbox li').height(imgw);

		// 百分比
		$('.line-inner').width($('.line-inner').attr("data-width")+"%")
	})
	

	




</script>
{/literal}
{/block}